from django.conf.urls.defaults import *
#from spojstats.main import views

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('spojstats.main',
    (r'^[/]?$', 'views.index'),
    (r'^cleandb[/]?', 'views.clean_db'),
    (r'^user[/]?$', 'views.user_profile'),
    (r'^user/(?P<username>\w+)[/]?$', 'views.user_profile_detail'),
    (r'^user/(?P<username>\w+)/(?P<lang>\w+)[/]?$', 'views.user_profile_detail'),
    (r'^problem[/]?$', 'views.problem'),
    (r'^problem/(?P<problem_code>\w+)[/]?$', 'views.problem_details'),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/(.*)', admin.site.root),
)
